Repository navigation
Introduce storage format v2 with aligned binary data and little-endian indexes - #1
Merged
Merged
Conversation
Store REAL/DOUBLE as binary64LE, align rows and scalar fields, reserve table page 0 for immutable metadata, use U32 overflow lengths, and compare typed little-endian index keys numerically. Preserve signed zero through SQL conversion and covering indexes. Reject legacy database formats explicitly. Add byte-level regression tests, native test runner integration, and current format/compatibility documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The physical storage layout differed from the documented expectations in five places: REAL/DOUBLE values were decimal text, records were unaligned, user tables lacked metadata page 0, overflow pointers stored an eight-byte length, and numeric index components used big-endian ordering tricks.
This change introduces incompatible storage format 2. Existing format-1 databases are explicitly rejected; no legacy reader or automatic migration is provided.
Changes
MSTBheader. Heap and overflow pages start at 1; all physical table opens validate the header.test.ps1 -StorageV2gate in the cumulative storage phase.Generic page, superblock and WAL framing, and the wire protocol remain version 1. This is an unreleased development change; the product version label is unchanged.
Validation
git diff --checkis clean.Compiler: MiniLang 1.3.10, commit
8e64c9cfda92199b68ac5d3974fea445f12f6c39.Format specification · Validation report